import { App } from "vue";
import { registerEditorProvider } from "@ibiz-template/runtime";
import { SwitchEditorProvider } from "./i-biz-switch.provider";
import Switch from "./i-biz-switch.vue";

export const IBizSwitch = {
  install(v: App) {
    v.component("IBizSwitch", Switch);
    registerEditorProvider("MOBSWITCH", () => new SwitchEditorProvider());
  },
};
